package com.acargil.sudoku.model;

public enum PuzzleSolvingAlgorithm {

	BASIC_ALGORITHM("oguzhanacargil@gmail.com", "Basic Algorithm", "This is a short description for basic algorithm.", "Oguzhan ACARGIL"),
	COLLOQUIAL_ALGORITHM("http://www.colloquial.com/carp","Colloquial Backtracking Algorithm","The algorithm employed is similar to the standard backtracking eight queens algorithm","Bob Carpenter");
	
	private String url, title, description, author;

	private PuzzleSolvingAlgorithm(String url, String title, String description, String author) {
		this.url = url;
		this.title = title;
		this.description = description;
		this.author = author;
	}
	
	@Override
	public String toString() {
		return this.title + " is implemented by " + this.author + "\n" + 
				this.url ;
	}

	public String getUrl() {
		return url;
	}

	public String getTitle() {
		return title;
	}

	public String getDescription() {
		return description;
	}

	public String getAuthor() {
		return author;
	}
	
}
